package com.server.tools;

import java.io.FileNotFoundException;
import java.io.IOException;
/**
* @author	李小布
* @email	397554852@qq.com
* @version	创建时间：2018年9月20日 上午11:49:20
*/
public class GameConfig {
	static PropertyManager pm = null;
	
	public static int http_port  = 20300;
	public static int socket_port  = 20300;
	
	public static String FILENAME = "config/server.properties";
	
	public static void load() throws FileNotFoundException, IOException {
		pm = new PropertyManager(FILENAME);
		http_port = Integer.parseInt(pm.getString("http_port"));
		socket_port = Integer.parseInt(pm.getString("socket_port"));
	}
}
